Release 10.1A: OpenEdge Development:
Java Open Clients
Methods
The
ProDataGraphMetaDataclass provides the following methods.addTable( )
Adds the specified temp-table schema definition (
ProDataObjectmeta data) to theProDataGraphMetaDataobject:
tablemdSpecifies a
ProDataObjectMetaDataobject that defines the schema of a temp-table in aProDataGraph.You must call this method to define each required
ProDataObjectcollection before attaching thisProDataGraphMetaDataobject to theProDataGraph. EachProDataObjectMetaDataobject describes the meta data forProDataObjectinstances in a collection that maps to a temp-table in the corresponding Progress 4GL ProDataSet. When you callProDataGraph.createProDataObject(), a OpenEdge returns aProDataObjectthat contains column and type data as described by the correspondingProDataObjectMetaDataobject.addDataRelation( )
Adds the specified data-relation definition to the
ProDataGraphMetaDataobject:
drmdSpecifies a
ProDataRelationMetaDataobject that defines a data-relation for aProDataGraph.You can only call this method after you have already called the
addTable()method to define theProDataObjectcollections that participate in the specified data-relation. You must also call this method to define each required data-relation before attaching thisProDataGraphMetaDataobject to theProDataGraph. This method throws anExceptionif any table participating in the specified data-relation is not already a member of theProDataGraphMetaData.getNumTables( )
Returns the number of
ProDataObjectMetaDataobjects defined in thisProDataGraphMetaDataobject:
getTableNames( )
Returns a
Stringarray of the table names of theProDataObjectMetaDataobjects defined in thisProDataGraphMetaDataobject:
getNumRelations( )
Returns the number of
ProDataRelationMetaDataobjects in thisProDataGraphMetaDataobject:
getTableMetaData( )
Returns the specified
ProDataObjectMetaDataobject in thisProDataGraphMetaDataobject:
idxSpecifies a 0-based index of tables that can also reference an item in the array of table names returned by the getTableNames( ) method up to the limit specified by the getNumTables( ) method.
getRelationMetaData( )
Returns the specified
ProDataRelationMetaDataobject in thisProDataGraphMetaDataobject:
idxSpecifies a 0-based index of data-relations up to the limit specified by the getNumRelations( ) method.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |